<?php
$this->db->where('member_id',$member_id);
$query = $this->db->get('membership');

foreach($query->result() as $rows){
	$firstname = $rows->firstname;
	$lastname = $rows->lastname;
	$nickname = $rows->nickname;
	$gender = $rows->gender;
	$birthdate = $rows->birthdate;
	$address = $rows->address;
	$email = $rows->email;
	$member_display = $rows->member_display;
}
?>
<?php 
if($member_display == NULL)
{
?>

<div><img src="<?=base_url()?>km_resource/member_display/null.png" width="50" height="50"/></div>
<div style="position:relative; left:100px; top:-50px;">
  <label>
  <img src="<?=base_url()?>images/graphic/users.png"/>
  <?=$firstname?>
  &nbsp;
  <?=$lastname?>
  </label>
  &nbsp;
  <label>
  <?=$nickname?>
  </label>
  &nbsp;
  <label>
  <?=$email?>
  </label>

  </div>
<?php
}
?>
